const reg = /\B(?=(\d{3})+(?!\d))/g;
export default function (value: string | number, symbol = ',') {
  value = parseFloat(value).toFixed(2);
  return value.replace(reg, symbol);
}
